projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a5dcb
)
gdkselectioninputstream-x11: Fix memory leak
author
Mohammed Sadiq
<sadiq@sadiqpk.org>
Sun, 16 Sep 2018 14:38:25 +0000
(20:08 +0530)
committer
Mohammed Sadiq
<sadiq@sadiqpk.org>
Sun, 16 Sep 2018 14:38:25 +0000
(20:08 +0530)
gdk/x11/gdkselectioninputstream-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkselectioninputstream-x11.c
b/gdk/x11/gdkselectioninputstream-x11.c
index 55f83b497564ddd827f1275a6551d718c455b352..99778c236dc935bd324977ac35c7b769b20757aa 100644
(file)
--- a/
gdk/x11/gdkselectioninputstream-x11.c
+++ b/
gdk/x11/gdkselectioninputstream-x11.c
@@
-140,7
+140,7
@@
gdk_x11_selection_input_stream_flush (GdkX11SelectionInputStream *stream)
written, priv->pending_size));
g_task_return_int (priv->pending_task, written);
-
priv->pending_task = NULL
;
+
g_clear_object (&priv->pending_task)
;
priv->pending_data = NULL;
priv->pending_size = 0;
}